<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=10;IE=9; IE=8; IE=EDGE" />
<link rel="stylesheet" type="text/css" href="css/login.css" />
<script type="text/javascript" src="js/jquery-mini-1.7.2.js"></script>
<script type="text/javascript">

</script>
<title>食堂物资管理系统登陆页面</title>
</head>
<body id="login_bg">
<form id="mainForm" action="j_spring_security_check" method="post">
	<div class="login_main">
		<div class="login_form_bg">
			<div class="login_form">
				<c:if test="${param.error == true }">
					<div class="red12 error_msg">
						${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}
		    	    </div>
				</c:if>
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
				    		<td width="55" height="30" align="center"><span class="green12">用户</span></td>
				    		<td align="left">
			      				<input type="text" name="j_username" class="login_inp" style="width:130px;" />
		      				</td>
			  			</tr>
					  	<tr>
					    	<td height="30" align="center"><span class="green12">密码</span></td>
					    	<td align="left">
					    		<input type="password" name="j_password" class="login_inp" style="width:130px;" />
					    	</td>
					  	</tr>
			  			<tr>
			    			<td height="30" align="center"><span class="green12">角色</span></td>
			    			<td align="left">
			    				<select name="j_role" class="login_select" style="width:131px;">
			    					<c:forEach var="role" items="${roleList }">
			    						<option value="<sts:des3 code="${role.id }" />">${role.name }</option>
			    					</c:forEach>
			    				</select>
			      			</td>
			  			</tr>
			  			<tr>
			    			<td height="35">&nbsp;</td>
			    			<td align="left">
			    				<a href="javascript:void(0)" onclick="$('#mainForm').submit()"><img src="images/login_btn.gif" width="57" height="22" border="0" /></a>
			    			</td>
			  			</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</form>
</body>
</html>
